﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using DBAccess;

namespace Project
{
    public class Project : iProject
    {
        private string _Unid;
        private string _Name;
        private int _ManagerId;
        private string _StartDate;
        private string _EndDate;

        public string Name
        {
            get { return _Name; }
            set { _Name = value; }
        }

        public int ManagerId
        {
            get { return _ManagerId; }
            set { _ManagerId = value; }
        }

        public string StartDate
        {
            get { return _StartDate; }
            set { _StartDate = value; }
        }

        public string EndDate
        {
            get { return _EndDate; }
            set { _EndDate = value; }
        }

        public Project(string name,int managerid, string startdate, string enddate)
        {
            _Name = name;
            _ManagerId = managerid;
            _StartDate = startdate;
            _EndDate = enddate;
        }
        
        //public void AddProject()
        //{
        //    string Unid;
        //    string sql;
        //    sql = String.Format("INSERT INTO Project (name, startdate, enddate) VALUES {0} , {1} , {2}", _Name, _StartDate,_EndDate);

        //}

        //public void AddUserToProject(string ProjectUnid, string UserUnid)
        //{
        //    string sql;
            
        //}

        //public void GetUsers(string unid)
        //{

        //}

    }
}
